package com.ss.android.article.browser.database.bookmark;

import android.database.Cursor;
import android.support.annotation.NonNull;

import com.a.a.NightMode;
import com.a.a.u;

final class b implements NightMode {
    private final a b;
    private final String a;

    b(a arg1, String arg2) {
        this.b = arg1;
        this.a = arg2;

    }

    public final void f(@NonNull Object arg3) {
        Cursor v0 = com.ss.android.article.browser.database.bookmark.a.a(this.b, this.a);
        if (v0.moveToFirst()) {
            ((u) arg3).onItem(com.ss.android.article.browser.database.bookmark.a.a(v0));
        } else {
            ((u) arg3).a(null);
        }

        v0.close();
        ((u) arg3).onComplete();
    }
}

